home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / pc_dcl.zip / HELP / WAIT.HTX < prev    next >
Text File  |  1991-10-15  |  2KB  |  58 lines

  1. WAIT
  2.  
  3.  WAIT
  4.  
  5.     Places the process in a wait state until a specified period of  time
  6.     has  elapsed.  The  WAIT  command  is  used  in a command  procedure
  7.     to delay processing of either the procedure  itself  or  a    set of 
  8.     commands in the procedure.
  9.  
  10.     Format:
  11.  
  12.       WAIT  delta-time
  13.  
  14.     Additional information available:
  15.  
  16.       delta-time WAIT.delta-time     Example WAIT.Example
  17.  
  18.  
  19. WAIT.delta-time
  20.  
  21.  WAIT
  22.  
  23.      delta-time
  24.  
  25.       Specifies the time interval to wait.  The  time  must  be  specified
  26.       according to the rules for specifying delta time values as described
  27.       in the VMS DCL Concepts Manual.   Note, however, that the delta time
  28.       can contain only the hours,  minutes,  seconds,  and  hundredths  of
  29.       seconds fields; the days  part  must  be  omitted.   Also, the delta
  30.       time must begin with the number of hours and not a  colon,  even  if
  31.       the number of hours is zero.
  32.  
  33.       Note that if you issue the  WAIT  command  interactively,  the  WAIT
  34.       command does not prompt you for a time value.  However, in order for
  35.       the command to have any effect, you must supply a time value.
  36.  
  37. WAIT.Example
  38.  
  39.  WAIT
  40.  
  41.   Example
  42.  
  43.       1.   $ LOOP:
  44.            $ RUN ALPHA
  45.            $ WAIT 00:10
  46.            $ GOTO LOOP
  47.  
  48.       The command procedure executes the program ALPHA.   After  the   RUN
  49.       command executes the program, the WAIT command delays execution   of
  50.       the GOTO command for 10 minutes.  Note that 00 is specified  for the
  51.       number  of  hours,  because the time specification cannot begin with
  52.       a colon.   After  10  minutes, the  GOTO  command  executes, and the 
  53.       procedure  transfers  control  to  the  label  LOOP and executes the
  54.       program ALPHA again.  The procedure loops until it is interrupted or
  55.       terminated.
  56.  
  57. 
  58.